package com.xin.di.uav.applet.service;

import com.xin.di.uav.applet.request.RoleAddParam;
import com.xin.di.uav.applet.request.RoleEditParam;
import com.xin.di.uav.applet.resp.SysRoleResp;
import com.xin.di.uav.common.response.IdAndNameResp;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;
import java.util.List;

public interface RoleService {

    SysRoleResp list(int pageNum, int pageSize, String serviceRegion);

    List<IdAndNameResp> selList(String name);


    Boolean add(@RequestBody @Valid RoleAddParam roleAddParam);


    Boolean edit(@RequestBody @Valid RoleEditParam roleEditParam);

    boolean delete(String id);
}
